<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>用户详情</title>
	<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap.min.css"/>
	<link rel="stylesheet" type="text/css" href="/admin/css/bootstrap-table.min.css"/>
	<link rel="stylesheet" type="text/css" href="/admin/css/style.min.css" />
	<link rel="stylesheet" type="text/css" href="/admin/layui/css/layui.css">

	<script src="/admin/js/jquery-3.3.1.min.js"></script>
	<script src="/admin/js/bootstrap.js"></script>
	<script src="/admin/layui/layui.js" charset="utf-8"></script>
	<script src="/admin/js/api.js" charset="utf-8"></script>
	<script src="/admin/js/base.js" charset="utf-8"></script>
	<script src="/admin/js/common.js"></script>
	<script src="/admin/js/view.js"></script>

</head>
<body>
<div>
	<!-- Tab panes -->
	<div class="tab-content form-content">
		<div>
			<div class="rigthContent">
				<form class="layui-form layui-form-content" lay-filter="add_form" action="">
					<div class="tab-content form-content">
						<div class="row tab-pane active" role="tabpanel" id="form-tab1">
							<div class="col-sm-12">
								<div class="ibox float-e-margins">
									<div class="">
										<div class="layui-form-item">
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>企业名称：</label>
												<div class="layui-input-block">
													<input type="text" id="entName" name="entName" lay-verify="required" autocomplete="on" placeholder="请输入企业名称" class="layui-input">
												</div>
											</div>
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>统一社会信用代码：</label>
												<div class="layui-input-block">
													<input type="text" id="entCode" name="entCode" lay-verify="required" autocomplete="on" placeholder="请输入统一社会信用代码" class="layui-input">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>企业地址：</label>
												<div class="layui-input-block">
													<input type="text" id="entAddress" name="entAddress" lay-verify="required" autocomplete="on" placeholder="请输入企业地址" class="layui-input">
												</div>
											</div>
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>联系人：</label>
												<div class="layui-input-block">
													<input type="text" id="contactPerson" name="contactPerson" lay-verify="required" autocomplete="on" placeholder="请输入联系人" class="layui-input">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>联系电话：</label>
												<div class="layui-input-block">
													<input type="text" id="contactPhone" name="contactPhone" lay-verify="required" autocomplete="on" placeholder="请输入联系电话" class="layui-input">
												</div>
											</div>
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>电子邮件：</label>
												<div class="layui-input-block">
													<input type="text" id="email" name="email" lay-verify="required" autocomplete="on" placeholder="请输入联系电话" class="layui-input">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>法定代表人(负责人)：</label>
												<div class="layui-input-block">
													<input type="text" id="legalPerson" name="legalPerson" autocomplete="off" class="layui-input" placeholder="请输入法定代表人(负责人)">
												</div>
											</div>
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>企业总经理姓名：</label>
												<div class="layui-input-block">
													<input type="text" id="manager" name="manager" autocomplete="off" class="layui-input" placeholder="请输入企业总经理姓名">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>主营行业类别：</label>
												<div class="layui-input-block">
													<input type="text" id="industryCategory" name="industryCategory" autocomplete="off" class="layui-input" placeholder="主营行业类别">
												</div>
											</div>
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>代码：</label>
												<div class="layui-input-block">
													<input type="text" id="industryCode" name="industryCode" autocomplete="off" class="layui-input" placeholder="请输入企业总经理姓名">
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>登记注册类型：</label>
												<div class="layui-input-block">
													<select name="registerCategory" id="registerCategory" lay-filter="registerCategory">
														<option value="">请选择</option>
														<option value="0">否</option>
														<option value="1">是</option>
													</select>
												</div>
											</div>
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>控股情况：</label>
												<div class="layui-input-block">
													<select name="holding" id="holding" lay-filter="holding">
														<option value="">请选择</option>
														<option value="0">否</option>
														<option value="1">是</option>
													</select>
												</div>
											</div>
										</div>
										<div class="layui-form-item">
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>是否高新企业：</label>
												<div class="layui-input-block">
													<select name="highTechEnterprises" id="highTechEnterprises" lay-filter="highTechEnterprises">
														<option value="">请选择</option>
														<option value="0">否</option>
														<option value="1">是</option>
													</select>
												</div>
											</div>
											<div class="layui-inline width-50">
												<label class="layui-form-label"><samp style="color: red;">*</samp>是否规模以上企业：</label>
												<div class="layui-input-block">
													<select name="aboveEnterprises" id="aboveEnterprises" lay-filter="aboveEnterprises">
														<option value="">请选择</option>
														<option value="0">否</option>
														<option value="1">是</option>
													</select>
												</div>
											</div>
										</div>

										<div class="layui-form-item">
											<div class="layui-inline width-100">
												<label class="layui-form-label">主要产品：</label>
												<div class="layui-input-block">
													<textarea placeholder="请输入内容" class="layui-textarea" name="mainProduct" id="mainProduct"></textarea>
												</div>
											</div>
										</div>

										<div class="layui-form-item">
											<div class="layui-inline width-100">
												<label class="layui-form-label">联合申报单位：</label>
												<div class="layui-input-block">
													<textarea placeholder="请输入内容" class="layui-textarea" name="applicant" id="applicant"></textarea>
												</div>
											</div>
										</div>

										<div class="layui-form-item">
											<div class="layui-inline width-100">
												<label class="layui-form-label">企业简介：</label>
												<div class="layui-input-block">
													<textarea placeholder="请输入内容" class="layui-textarea" name="introduction" id="introduction"></textarea>
												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="layui-form-submit">
						<button id="save" type="button" class="layui-btn" lay-submit="" lay-filter="save" id="save">提交</button>
						<a class="layui-btn handle_back" onclick="toClose()">取消</a>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<script>

	var entId = getParam("id");//主键
	layuiReady (function() {
		dataView();
		_loadingClose();
	});

	function dataView() {
		// 获取数据
		This.jqueryAjax(Api.admin.enterprise.getById, {id: entId}, "json", function (data) {
			if (data && data.status == 1) {
                var dataObj = data.object;
                $("#registerCategory").val(dataObj.registerCategory);
                $("#holding").val(dataObj.holding);
                $("#highTechEnterprises").val(dataObj.highTechEnterprises);
                $("#aboveEnterprises").val(dataObj.aboveEnterprises);
                valData(dataObj);
                layform.render();
			} else {
				layerMessage(data.message, 2);
			}
		});
	}

	//------------------------------------------详情回填数据-结束-------------------------------------------
</script>

</body>

</html>